technique for completing the square